import index from '@/views/index';
// import login from '@/views/login';
import errorPage from '@/components/error.vue';

export const routes = [{
    path: '/',
    name: '',
    hidden: true,
    redirect: '/physical/physicalMachine',
    meta: {
      requireAuth: false
    }
  },
  // {
  //   path: '/login',
  //   name: '登录',
  //   component: login,
  //   hidden: true,
  //   meta: {
  //     requireAuth: false
  //   }
  // },
  {
    path: '/404',
    name: '404',
    component: errorPage,
    hidden: true,
    meta: {
      title:'404',
      requireAuth: false
    }
  },
  {
    path: '/index',
    name: '首页',
    component: index,
    iconCls: 'el-icon-tickets',
    children: [{
        path: '/physical/physicalMachine',
        name: 'physical_physicalMachine',
        component: () => import('@/views/physical/physicalMachine/index.vue'),
        meta: {
          title: '物理机管理',
          requireAuth: true
        }
      },
      {
        path: '/physical/physicalMachineAdd',
        name: 'physical_physicalMachine_add',
        component: () => import('@/views/physical/physicalMachine/formAdd.vue'),
        meta: {
          title: '注册物理机',
          requireAuth: true
        }
      },
      {
        path: '/physical/physicalMachineView',
        name: 'physical_physicalMachineView',
        component: () => import('@/views/physical/physicalMachine/formView.vue'),
        meta: {
          title: '注册物理机',
          requireAuth: true
        }
      },
      {
        path: '/computsuc/physical',
        name: 'cumputsuc_physical',
        component: () => import('@/views/computsuc/physical/index.vue'),
        meta: {
          title: '裸金属服务器',
          requireAuth: true
        }
      },
      {
        path: '/computsuc/physicalAdd',
        name: 'cumputsuc_physical_add',
        component: () => import('@/views/computsuc/physical/formAdd.vue'),
        meta: {
          title: '申请裸金属服务器',
          requireAuth: true
        }
      },
      {
        path: '/computsuc/virtualMachine',
        name: 'computsuc_virtualMachine',
        component: () => import('@/views/computsuc/virtualMachine/index.vue'),
        meta: {
          title: '虚拟机',
          requireAuth: true
        }
      },
      {
        path: '/computsuc/virtualMachineAdd',
        name: 'computsuc_virtualMachineAdd',
        component: () => import('@/views/computsuc/virtualMachine/formAdd.vue'),
        meta: {
          title: '创建虚拟机',
          requireAuth: true
        }
      },
      {
        path: '/computsuc/mirrorImage',
        name: 'computsuc_mirrorImage',
        component: () => import('@/views/computsuc/mirrorImage/index.vue'),
        meta: {
          title: '镜像服务',
          requireAuth: true
        }
      },
      {
        path: '/computsuc/mirrorImageUpload',
        name: 'computsuc_mirrorImageUpload',
        component: () => import('@/views/computsuc/mirrorImage/uploadPage'),
        meta: {
          title: '上传镜像',
          requireAuth: true
        }
      },
      {
        path: '/computsuc/mirrorImageAdd',
        name: 'computsuc_mirrorImageAdd',
        component: () => import('@/views/computsuc/mirrorImage/formAdd.vue'),
        meta: {
          title: '创建镜像',
          requireAuth: true
        }
      },
      {
        path: '/container/containerGroup',
        name: 'container_containerGroup',
        component: () => import('@/views/container/containerGroup/index.vue'),
        meta: {
          title: '容器集群管理',
          requireAuth: true
        }
      },
      {
        path: '/container/containerGroupAdd',
        name: 'container_containerGroupAdd',
        component: () => import('@/views/container/containerGroup/formAdd.vue'),
        meta: {
          title: '创建容器集群管理',
          requireAuth: true
        }
      },
      {
        path: '/container/mirrorImageServe',
        name: 'container_mirrorImageServe',
        component: () => import('@/views/container/mirrorImageServe/index.vue'),
        meta: {
          title: '容器镜像服务',
          requireAuth: true
        }
      },
      {
        path: '/container/appManage',
        name: 'container_appManage',
        component: () => import('@/views/container/appManage/index.vue'),
        meta: {
          title: '应用管理',
          requireAuth: true
        }
      },
      // {
      //   path: '/container/appManageAdd',
      //   name: 'container_appManageAdd',
      //   component: () => import('@/views/container/appManage/formAdd.vue'),
      //   meta: {
      //     title: '应用管理创建',
      //     requireAuth: true
      //   }
      // },
      {
        path: '/container/appGroupManage',
        name: 'container_appGroupManage',
        component: () => import('@/views/container/appGroupManage/index.vue'),
        meta: {
          title: '应用组件管理',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/blockSave',
        name: 'saveresource_blockSave',
        component: () => import('@/views/saveresource/blockSave/index.vue'),
        meta: {
          title: '块存储服务',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/blockSaveAdd',
        name: 'saveresource_blockSaveAdd',
        component: () => import('@/views/saveresource/blockSave/formAdd.vue'),
        meta: {
          title: '申请云硬盘',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/distSave',
        name: 'saveresource_distSave',
        component: () => import('@/views/saveresource/distSave/index.vue'),
        meta: {
          title: '分布式存储服务',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/distSaveAdd',
        name: 'saveresource_distSaveAdd',
        component: () => import('@/views/saveresource/distSave/formAdd.vue'),
        meta: {
          title: '申请存储池',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/backetSave',
        name: 'saveresource_backetSave',
        component: () => import('@/views/saveresource/backetSave/index.vue'),
        meta: {
          title: '存桶管理',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/objManage',
        name: 'saveresource_objManage',
        component: () => import('@/views/saveresource/objManage/index.vue'),
        meta: {
          title: '对象管理',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/backetSaveAdd',
        name: 'saveresource_backetSaveAdd',
        component: () => import('@/views/saveresource/backetSave/formAdd.vue'),
        meta: {
          title: '创建桶',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/fileSave',
        name: 'saveresource_fileSave',
        component: () => import('@/views/saveresource/fileSave/index.vue'),
        meta: {
          title: '文件存储服务',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/fileSaveAdd1',
        name: 'saveresource_fileSaveAdd1',
        component: () => import('@/views/saveresource/fileSave/formNas1/formAdd.vue'),
        meta: {
          title: '申请NAS空间1',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/fileSaveAdd2',
        name: 'saveresource_fileSaveAdd2',
        component: () => import('@/views/saveresource/fileSave/formNas2/formAdd.vue'),
        meta: {
          title: '申请NAS空间2',
          requireAuth: true
        }
      },
      {
        path: '/saveresource/fileSaveAdd3',
        name: 'saveresource_fileSaveAdd3',
        component: () => import('@/views/saveresource/fileSave/formNas3/formAdd.vue'),
        meta: {
          title: '申请NAS空间3',
          requireAuth: true
        }
      },
      {
        path: '/backuprecovery/hardDisk',
        name: 'backuprecovery_hardDisk',
        component: () => import('@/views/backuprecovery/hardDisk/index.vue'),
        meta: {
          title: '云硬盘备份恢复',
          requireAuth: true
        }
      },
      {
        path: '/backuprecovery/hardDiskAdd',
        name: 'backuprecovery_hardDiskAdd',
        component: () => import('@/views/backuprecovery/hardDisk/formAdd.vue'),
        meta: {
          title: '申请存储库',
          requireAuth: true
        }
      },
      {
        path: '/backuprecovery/yunServer',
        name: 'backuprecovery_yunServer',
        component: () => import('@/views/backuprecovery/yunServer/index.vue'),
        meta: {
          title: '云服务器备份恢复',
          requireAuth: true
        }
      },
      {
        path: '/backuprecovery/yunServerAdd',
        name: 'backuprecovery_yunServerAdd',
        component: () => import('@/views/backuprecovery/yunServer/formAdd.vue'),
        meta: {
          title: '申请服务器存储库',
          requireAuth: true
        }
      },
      {
        path: '/backuprecovery/fileSave',
        name: 'backuprecovery_fileSave',
        component: () => import('@/views/backuprecovery/fileSave/index.vue'),
        meta: {
          title: '文件存储备份恢复',
          requireAuth: true
        }
      },
      {
        path: '/backuprecovery/fileSaveAdd',
        name: 'backuprecovery_fileSaveAdd',
        component: () => import('@/views/backuprecovery/fileSave/formAdd.vue'),
        meta: {
          title: '文件申请存储库',
          requireAuth: true
        }
      },
      {
        path: '/backuprecovery/tactics',
        name: 'backuprecovery_tactics',
        component: () => import('@/views/backuprecovery/tactics/index.vue'),
        meta: {
          title: '策略',
          requireAuth: true
        }
      },
      {
        path: '/backuprecovery/tacticsAdd',
        name: 'saveresource_tacticsAdd',
        component: () => import('@/views/backuprecovery/tactics/formAdd.vue'),
        meta: {
          title: '创建策略',
          requireAuth: true
        }
      },
      {
        path: '/networksuc/vmVPC',
        name: 'networksuc_vmVPC',
        component: () => import('@/views/networksuc/vmVPC/index.vue'),
        meta: {
          title: '虚拟云VRC',
          requireAuth: true
        }
      },
      {
        path: '/networksuc/vmVPCchild',
        name: 'networksuc_vmVPCchild',
        component: () => import('@/views/networksuc/vmVPCchild/index.vue'),
        meta: {
          title: '子网',
          requireAuth: true
        }
      },
      {
        path: '/networksuc/vmVPCsource',
        name: 'networksuc_vmVPCsource',
        component: () => import('@/views/networksuc/vmVPCsource/index.vue'),
        meta: {
          title: '子网',
          requireAuth: true
        }
      },
      {
        path: '/networksuc/vmVPCAdd',
        name: 'networksuc_vmVPCAdd',
        component: () => import('@/views/networksuc/vmVPC/formAdd.vue'),
        meta: {
          title: '创建虚拟云',
          requireAuth: true
        }
      },
      {
        path: '/networksuc/vmShields',
        name: 'networksuc_vmShields',
        component: () => import('@/views/networksuc/vmShields/index.vue'),
        meta: {
          title: '虚拟防火墙',
          requireAuth: true
        }
      },
      {
        path: '/networksuc/vmShieldsAdd',
        name: 'networksuc_vmShieldsAdd',
        component: () => import('@/views/networksuc/vmShields/formAdd.vue'),
        meta: {
          title: '创建虚拟防火墙',
          requireAuth: true
        }
      },
      {
        path: '/networksuc/vpn',
        name: 'networksuc_vpn',
        component: () => import('@/views/networksuc/vpn/index.vue'),
        meta: {
          title: 'VPN网关',
          requireAuth: true
        }
      },
      {
        path: '/networksuc/vpnAdd',
        name: 'networksuc_vpnAdd',
        component: () => import('@/views/networksuc/vpn/formAdd.vue'),
        meta: {
          title: '创建VPN网关',
          requireAuth: true
        }
      },
      {
        path: '/networksuc/loadLeveling',
        name: 'networksuc_loadLeveling',
        component: () => import('@/views/networksuc/loadLeveling/index.vue'),
        meta: {
          title: '负载均衡',
          requireAuth: true
        }
      },
      {
        path: '/networksuc/loadLevelingAdd',
        name: 'networksuc_loadLeveling_add',
        component: () => import('@/views/networksuc/loadLeveling/formAdd.vue'),
        meta: {
          title: '创建负载均衡',
          requireAuth: true
        }
      },
      {
        path: '/passsucserver/releationalSql',
        name: 'passsucserver_releationalSql',
        component: () => import('@/views/passsucserver/releationalSql/index.vue'),
        meta: {
          title: '关系型数据库服务',
          requireAuth: true
        }
      },
      {
        path: '/passsucserver/releationalSqlAdd',
        name: 'passsucserver_releationalSqlAdd',
        component: () => import('@/views/passsucserver/releationalSql/formAdd.vue'),
        meta: {
          title: '创建关系型数据库服务',
          requireAuth: true
        }
      },
      {
        path: '/passsucserver/distributedFile',
        name: 'passsucserver_distributedFile',
        component: () => import('@/views/passsucserver/distributedFile/index.vue'),
        meta: {
          title: '分布式文件系统服务',
          requireAuth: true
        }
      },
      {
        path: '/passsucserver/distributedFileAdd',
        name: 'passsucserver_distributedFileAdd',
        component: () => import('@/views/passsucserver/distributedFile/formAdd.vue'),
        meta: {
          title: '创建分布式文件系统服务',
          requireAuth: true
        }
      },
      {
        path: '/passsucserver/analyticalSql',
        name: 'passsucserver_analyticalSql',
        component: () => import('@/views/passsucserver/analyticalSql/index.vue'),
        meta: {
          title: '分析性数据库服务',
          requireAuth: true
        }
      },
      {
        path: '/passsucserver/analyticalSqlAdd',
        name: 'passsucserver_analyticalSqlAdd',
        component: () => import('@/views/passsucserver/analyticalSql/formAdd.vue'),
        meta: {
          title: '创建分析性数据库服务',
          requireAuth: true
        }
      },
      {
        path: '/passsucserver/sqlBackup',
        name: 'passsucserver_sqlBackup',
        component: () => import('@/views/passsucserver/sqlBackup/index.vue'),
        meta: {
          title: '数据库备份文件管理',
          requireAuth: true
        }
      },
      {
        path: '/passsucserver/paramsManage',
        name: 'passsucserver_paramsManage',
        component: () => import('@/views/passsucserver/paramsManage/index.vue'),
        meta: {
          title: '参数管理',
          requireAuth: true
        }
      },
      {
        path: '/passsucserver/paramsManageDetail',
        name: 'passsucserver_paramsManageDetail',
        component: () => import('@/views/passsucserver/paramsManage/detailPage.vue'),
        meta: {
          title: '参数详情',
          requireAuth: true
        }
      },
      {
        path: '/sqlsecure/auditSql',
        name: 'sqlsecure_auditSql',
        component: () => import('@/views/sqlsecure/auditSql/index.vue'),
        meta: {
          title: '数据库审计实例',
          requireAuth: true
        }
      },
      {
        path: '/sqlsecure/auditSqlAdd',
        name: 'sqlsecure_auditSqlAdd',
        component: () => import('@/views/sqlsecure/auditSql/formAdd.vue'),
        meta: {
          title: '创建审计实例',
          requireAuth: true
        }
      },
      {
        path: '/sqlsecure/auditRules',
        name: 'sqlsecure_auditRules',
        component: () => import('@/views/sqlsecure/auditRules/index.vue'),
        meta: {
          title: '审计规则',
          requireAuth: true
        }
      },
      {
        path: '/resourceMonitor/resourceView',
        name: 'resourceMonitor_resourceView',
        component: () => import('@/views/resourceMonitor/resourceView/index.vue'),
        meta: {
          title: '资源监控',
          requireAuth: true
        }
      },
      {
        path: '/yunMiddleware/middlewareServer',
        name: 'yunMiddleware_middlewareServer',
        component: () => import('@/views/yunMiddleware/middlewareServer/index.vue'),
        meta: {
          title: '云中间键服务',
          requireAuth: true
        }
      },
      {
        path: '/yunMiddleware/middlewareServerAdd',
        name: 'yunMiddleware_middlewareServerAdd',
        component: () => import('@/views/yunMiddleware/middlewareServer/formAdd.vue'),
        meta: {
          title: '申请缓存',
          requireAuth: true
        }
      },
      {
        path: '/networkSecurity/networkIsolation',
        name: 'networkSecurity_networkIsolation',
        component: () => import('@/views/networkSecurity/networkIsolation/index.vue'),
        meta: {
          title: '网络隔离',
          requireAuth: true
        }
      },
      {
        path: '/networkSecurity/accessControl',
        name: 'networkSecurity_accessControl',
        component: () => import('@/views/networkSecurity/accessControl/index.vue'),
        meta: {
          title: '访问控制',
          requireAuth: true
        }
      },
      {
        path: '/networkSecurity/accessControlEdit',
        name: 'networkSecurity_accessControlEdit',
        component: () => import('@/views/networkSecurity/accessControl/securityFormAdd.vue'),
        meta: {
          title: '创建安全组',
          requireAuth: true
        }
      },
      {
        path: '/networkSecurity/accessControlDetail',
        name: 'networkSecurity_accessControlDetail',
        component: () => import('@/views/networkSecurity/accessControl/securityDetail.vue'),
        meta: {
          title: '安全组详情',
          requireAuth: true
        }
      },
      {
        path: '/networkSecurity/accessControlACLDetail',
        name: 'networkSecurity_accessControlACLDetail',
        component: () => import('@/views/networkSecurity/accessControl/networkACLDetail.vue'),
        meta: {
          title: '网络ACL详情',
          requireAuth: true
        }
      },
      {
        path: '/networkSecurity/intrusionPrevention',
        name: 'networkSecurity_intrusionPrevention',
        component: () => import('@/views/networkSecurity/intrusionPrevention/index.vue'),
        meta: {
          title: '入侵防御',
          requireAuth: true
        }
      },
      {
        path: '/networkSecurity/networkAntiVirus',
        name: 'networkSecurity_networkAntiVirus',
        component: () => import('@/views/networkSecurity/networkAntiVirus/index.vue'),
        meta: {
          title: '网络防病毒',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/hostACL',
        name: 'hostSecurity_hostACL',
        component: () => import('@/views/hostSecurity/hostFirewall/hostACL.vue'),
        meta: {
          title: '主机ACL',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/hostFirewall',
        name: 'hostSecurity_hostFirewall',
        component: () => import('@/views/hostSecurity/hostFirewall/index.vue'),
        meta: {
          title: '主机防火墙',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/hostFirewallAdd',
        name: 'hostSecurity_hostFirewallAdd',
        component: () => import('@/views/hostSecurity/hostFirewall/formAdd.vue'),
        meta: {
          title: '创建防火墙',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/hostDefense',
        name: 'hostSecurity_hostDefense',
        component: () => import('@/views/hostSecurity/hostDefense/index.vue'),
        meta: {
          title: '主机入侵防御',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/hostDefenseAdd',
        name: 'hostSecurity_hostDefenseAdd',
        component: () => import('@/views/hostSecurity/hostDefense/formAdd.vue'),
        meta: {
          title: '创建任务',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/vbScaning',
        name: 'hostSecurity_vbScaning',
        component: () => import('@/views/hostSecurity/vbScaning/index.vue'),
        meta: {
          title: '漏洞扫描',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/vbScaningAdd',
        name: 'hostSecurity_vbScaningAdd',
        component: () => import('@/views/hostSecurity/vbScaning/formAdd.vue'),
        meta: {
          title: '创建漏洞扫描任务',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/malwarePrevention',
        name: 'hostSecurity_malwarePrevention',
        component: () => import('@/views/hostSecurity/malwarePrevention/index.vue'),
        meta: {
          title: '防恶意软件',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/malwarePreventionAdd',
        name: 'hostSecurity_malwarePreventionAdd',
        component: () => import('@/views/hostSecurity/malwarePrevention/formAdd.vue'),
        meta: {
          title: '创建任务',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/processWhitelist',
        name: 'hostSecurity_processWhitelist',
        component: () => import('@/views/hostSecurity/processWhitelist/index.vue'),
        meta: {
          title: '进程白名单',
          requireAuth: true
        }
      },
      {
        path: '/hostSecurity/processWhitelistAdd',
        name: 'hostSecurity_processWhitelistAdd',
        component: () => import('@/views/hostSecurity/processWhitelist/formAdd.vue'),
        meta: {
          title: '创建白名单',
          requireAuth: true
        }
      },
      {
        path: '/quotaManage/quota',
        name: 'quotaManage_quota',
        component: () => import('@/views/quotaManage/quota/index.vue'),
        meta: {
          title: '配额管理',
          requireAuth: true
        }
      },
      {
        path: '/monitoringPage',
        name: 'monitoringPage',
        component: () => import('@/views/monitoringPage/index.vue'),
        meta: {
          title: '监控物理机',
          requireAuth: true
        }
      },

    ]
  }
]
